package sx.login;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 * 
 */

/**
 * @author Administrator
 *
 */
public class ConnectSQLServer{
	private static Connection con=null;
	private static String url="jdbc:odbc:Login";
	/**
	 * @return the con
	 */
	public static Connection getCon() {
		try{
			Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
		}catch(ClassNotFoundException e){
			e.printStackTrace();
		}
		try{
			con=DriverManager.getConnection(url,"sa","123");
		}catch(SQLException e){
			e.printStackTrace();
		}
		return con;
	}
	
}